{assign var=eBayRefUrl value="http://"|cat:$primary_domain}
{if $canonical!==0}
	{assign var=eBayRefUrl value="http://"|cat:$primary_domain|cat:"/"|cat:$canonical}
{/if}

<div id="fb-root"></div>

<script type="text/javascript">
	var analyticsAccount = "{$analytics_account}";
	var analyticsDomain = "{$analytics_domain}";
	var browserWidth = window.innerWidth-15;
	var centerWidth = 650;
	var backgroundWidth = ((browserWidth-centerWidth)/2);
	document.getElementById("knMaster").style.width = browserWidth+"px";
	document.getElementById("knMasterCenter").style.width = centerWidth+"px";
	document.getElementById("knMasterLeft").style.width = backgroundWidth+"px";
	document.getElementById("knMasterRight").style.width = backgroundWidth+"px";

	function ljs(fjs){
		var headID = document.getElementById("ljs");         
		var newScript = document.createElement('script');
		newScript.type = 'text/javascript';
		newScript.src = fjs;
		headID.appendChild(newScript);
	}

	function recommendArticle(){
		{if $pageType=="article" && $is_404==false}
			knMailRecommend("{$article.url}");
		{/if}
	}

	var facebook_redirect_url = "{$facebook_redirect_url}";
	var google_uqid = "{$uqid}";
	var ga_is_new_user = "{$is_new_user}";
	var ga_is_login_denied = "{$is_login_denied}";
	var ga_is_logged_out = "{$is_logged_out}";
	var ga_comment_posted = "{$comment_posted}";
	var ga_article_title = "";
	{if $pageType=="article" && $is_404==false}
		ga_article_title = "{$article.title}";
	{/if}

	var share_page_title = "";

	{if $is_404==true}
	var share_page_title = "Seite wurde nicht gefunden - Kammerath Network";
	{else}
	{if $pageType == "index"}
	var share_page_title = "Kammerath Network";
	{/if}
	{if $pageType == "category"}
		{foreach from=$categoryList item=categoryItem}
			{if $categoryItem.url==$pageItem}
			var share_page_title = "{$categoryItem.name} - Kammerath Network";
			{/if}
		{/foreach}
	{/if}
	{if $pageType == "article"}
	var share_page_title = "{$article.title} - Kammerath Network";
	{/if}
	{if $pageType == "search"}
	var share_page_title = "{$pageItem} - Kammerath Network";
	{/if}
	{/if}
</script>

{assign var="advertisingFile" value='themes/desktop/lang/'|cat:$languageCode}
{assign var="advertisingFile" value=$advertisingFile|cat:'/advertising.tpl'}
{include file=$advertisingFile}	

<div id="ljs"></div>
<script type="text/javascript">
ljs("http://{$cdn_host_js}/minpack{$minpack_js_tag}.js");
</script>

<script type="text/javascript" src="https://apis.google.com/js/plusone.js">{literal}{lang:'de'}{/literal}</script>